import { Action } from 'redux'
import { ProfileITF, UserITF, WeChatITF } from '@INTERFACES/user'
import { ACQUIRE_CHANNEL_ENUM } from '@CONSTANTS/profile'

export interface ProfileActionITF extends Action {
  user?: UserITF
  acquireChannel?: ACQUIRE_CHANNEL_ENUM | ''
  params?: WeChatITF | ProfileITF
}

export interface ProfileStateITF {
  user: UserITF | null
  isVisitor: boolean
  acquireChannel?: ACQUIRE_CHANNEL_ENUM | ''
}
